using System.Collections.Generic;
using UnityEngine;

/// <summary>
/// 管理每个场景对应的背景和环境音
/// </summary>
[CreateAssetMenu(fileName = "SceneSoundListSO", menuName = "Sound/SceneSoundListSO", order = 0)]
public class SceneSoundListSO : ScriptableObject
{
    public List<SceneSoundItem> sceneSoundList;

    public SceneSoundItem GetSceneSoundItem(string sceneName){
        return sceneSoundList.Find(x => x.sceneName == sceneName);
    }

}

[System.Serializable]
public class SceneSoundItem
{
    [SceneName] public string sceneName;
    public SoundName ambient;
    public SoundName music;
}